﻿Imports Microsoft.Reporting.WinForms
Imports System.Data.SqlClient
Imports BUS
Public Class frmBAOCAODOANHTHU

    Private Sub frmBAOCAODOANHTHU_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'TODO: This line of code loads data into the 'DBNGKDataSet.LoadHD' table. You can move, or remove it, as needed.
        Me.LoadHDTableAdapter.Fill(Me.DBNGKDataSet.LoadHD)


        Me.ReportViewer1.RefreshReport()
    End Sub
    Dim hdbus As New HoaDonBUS
    Private Sub btt_baocao_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
        
    End Sub

    Private Sub btn_baocao_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_baocao.Click
        Dim ngaydau As DateTime
        Dim ngaycuoi As DateTime
        ngaydau = dtp_ngaybd.Value
        ngaycuoi = dtp_ngaykt.Value
        Dim dt As New DataTable
        dt = HoaDonBUS.DoanhThu(ngaydau, ngaycuoi)
        BindingSource1.DataSource = dt
        ReportViewer1.RefreshReport()

    End Sub

    Private Sub ButtonX1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)

    End Sub
   

    Private Sub ButtonX2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)

    End Sub
    
End Class